from manim import *


class NumberPlaneWithGrid(Scene):
    def construct(self):
        plane = NumberPlane(
            x_range=[-5, 5, 1],
            y_range=[-5, 5, 1],
            background_line_style={
                "stroke_color": BLUE_D,
                "stroke_width": 1,
                "stroke_opacity": 0.5,  # 透明度
            },
            axis_config={
                "color": GREEN,
                "include_numbers": True,
            }
        )
        self.add(plane)
